{% load django_echarts %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ECharts示例</title>
    {% include_echarts %}  <!-- 加载ECharts资源 -->
</head>
<body>
    <!-- 渲染图表 -->
    {% echarts my_chart height=chart_height %}

    <!-- 或者使用完整控制方式 -->
    <div id="chart1" style="width:800px;height:400px;"></div>
    {% echarts_options my_chart "chart1" %}
</body>
</html>